import java.util.Scanner;

public class nianfen {
    public static void main(String[]asgs) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入年份");
        double day = in.nextDouble();
        if ((day / 1000) >= 1) {
            System.out.println("这是正确的年份");
        }
        if ((day / 1000) < 1) {
            System.out.println("这不是正确的年份");
        }
        if ((day%4==0 & day%100!=0)||(day%400==0)){
            System.out.println("这是闰年");
        }
        if ((day%4!=0 & day%100==0)&(day%400!=0)){
            System.out.println("这不是闰年");
        }
    }
}
